package com.ggy.tuibi.Schedu;

import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONUtil;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author guoguangyuan
 * @Date 2025/4/4
 */
public class PiPiGua {

    public static void main(String[] args) {
        PiPiGua service = new PiPiGua();
        ExecutorService executorService = Executors.newCachedThreadPool();
        List<Runnable> taskList = new ArrayList<>();
        for (int i = 0; i < 500; i++) {
            taskList.add(service::daka);
        }
        for (Runnable runnable : taskList) {
            executorService.submit(runnable);
        }

        executorService.shutdown();
    }

    private void xiafen() {
        Map<String, Object> map = new HashMap<>();
        map.put("IMEI","76EBE39B-3756-46C6-B40D-28D06F07E817_iPhone");
        map.put("machine_id","20241217043113751");
        map.put("user_code","6005104");
        map.put("machine_alias","3Gzc2Ngk6iI1qp99c53lLWbsO74WjbQH");
        map.put("message","9");
        map.put("user_id","go2ekoSW-Hrflxf_WmjHTSBwnOfx7Dxq");
        HttpResponse response = HttpUtil.createPost("https://ppgtb.lekainet.com/PiPiGua_Web/operation_JieJi.do?mapStr=" + JSONUtil.toJsonStr(map)).execute();
        System.out.println(response.body());
    }

    private void daka() {
        //抓包user_id  h5JpyD2DHF-YumzkJhEfMGrT9MkpWvG4
        //实际user_id   Cmj4mvgambNlz0zhWHm8RCdeHLhz4POX
        HttpResponse response = HttpUtil.createPost("https://ppgtb.lekainet.com/PiPiGua_Web/index_updateSignData.do?reward_id=2&user_id=go2ekoSW-Hrflxf_WmjHTSBwnOfx7Dxq&IMEI=76EBE39B-3756-46C6-B40D-28D06F07E817_iPhone").execute();
        System.out.println(response.body());
    }

    private void duihuan() {
        HttpResponse response = HttpUtil.createPost("https://ppgtb.lekainet.com/PiPiGua_Web/mine_updateExchangeCoin.do?log_num=5490&log_proportion=3&user_id=toMKTf_fpjCYumzkJhEfMGrT9MkpWvG4&IMEI=c6e3401a5fdc19fa14b4a05a653756fc").execute();
        System.out.println(response.body());
    }

}
